 package com.lj.mcore.entity;

  import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;
 import java.util.Date;


 @Entity
 @Table(name="shopping_Visit")
 public class Visit extends IdEntity
 {
 
   @ManyToOne(fetch=FetchType.LAZY)
   private HomePage homepage;
 
   @OneToOne(fetch=FetchType.LAZY)
   private User user;
   private Date visitTime;
 
   public HomePage getHomepage()
   {
     return this.homepage;
   }
 
   public void setHomepage(HomePage homepage) {
     this.homepage = homepage;
   }
 
   public User getUser() {
     return this.user;
   }
 
   public void setUser(User user) {
     this.user = user;
   }
 
   public Date getVisitTime() {
     return this.visitTime;
   }
 
   public void setVisitTime(Date visitTime) {
     this.visitTime = visitTime;
   }
 }



 
 